package com.wocao.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 业主
 */
@Data
@ToString
@TableName("zy_owner")
@AllArgsConstructor
@NoArgsConstructor
//内容居中，颜色默认
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        fillBackgroundColor = -1)
public class ZyOwner implements Serializable {

    /**
     * 业主id
     */
    @ExcelProperty(index = 0, value = "业主Id")
    @ColumnWidth(23)
    @TableId("owner_id")
    private String ownerId;

    /**
     * 昵称
     */
    @ExcelProperty(index = 1, value = "昵称")
    @ColumnWidth(10)
    private String ownerNickname;

    /**
     * 真实姓名
     */
    @ExcelProperty(index = 2, value = "真实姓名")
    @ColumnWidth(12)
    private String ownerRealName;

    /**
     * 性别unknow未知male男female女
     */
    @ExcelProperty(index = 3, value = "性别")
    private String ownerGender;

    /**
     * 年龄
     */
    @ExcelProperty(index = 4, value = "年龄")
    @ColumnWidth(6)
    private Integer ownerAge;

    /**
     * 身份证号码
     */
    @ExcelProperty(index = 5, value = "身份证号码")
    @ColumnWidth(22)
    private String ownerIdCard;

    /**
     * 手机号码
     */
    @ExcelProperty(index = 6, value = "手机号")
    @ColumnWidth(15)
    private String ownerPhoneNumber;

    /**
     * openid
     */
    @ExcelIgnore
    private String ownerOpenId;

    /**
     * 微信号
     */
    @ExcelIgnore
    private String ownerWechatId;

    /**
     * qq号码
     */
    @ExcelIgnore
    private String ownerQqNumber;

    /**
     * 出生日期
     */
    @ExcelProperty(index = 11, value = "出生日期")
    @ColumnWidth(15)
    private LocalDate ownerBirthday;

    /**
     * 头像
     */
    @ExcelIgnore
    private String ownerPortrait;

    /**
     * 个性签名
     */
    @ExcelIgnore
    private String ownerSignature;

    /**
     * 禁用状态enable启用-disable禁用
     */
    @ExcelIgnore
    private String ownerStatus;

    /**
     * 注册方式（weChat微信-app-web）
     */
    @ExcelIgnore
    private String ownerLogonMode;

    /**
     * 业主类型
     */
    @ExcelIgnore
    private String ownerType;

    /**
     * 密码
     */
    @ExcelIgnore
    private String ownerPassword;

    /**
     * 创建者
     */
    @ExcelIgnore
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelIgnore
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @ExcelIgnore
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelIgnore
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    @ExcelIgnore
    private String remark;

    //小区名称
    @ExcelProperty(index = 7, value = "小区名称")
    @ColumnWidth(13)
    @TableField(exist = false)
    private String communityName;

    //楼栋名称
    @ExcelProperty(index = 8, value = "楼栋名称")
    @TableField(exist = false)
    private String buildingName;

    //单元名称
    @ExcelProperty(index = 9, value = "单元名称")
    @TableField(exist = false)
    private String unitName;

    //房间名称
    @ExcelProperty(index = 10, value = "房间名称")
    @TableField(exist = false)
    private String roomName;

    @ExcelIgnore
    @TableField(exist = false)
    private ZyBuilding zyBuilding;

    @ExcelIgnore
    @TableField(exist = false)
    private ZyCommunity zyCommunity;

    @ExcelIgnore
    @TableField(exist = false)
    private ZyOwnerRoom zyOwnerRoom;

    @ExcelIgnore
    @TableField(exist = false)
    private ZyOwnerRoomRecord zyOwnerRoomRecord;

    @ExcelIgnore
    @TableField(exist = false)
    private ZyRoom zyRoom;

    @ExcelIgnore
    @TableField(exist = false)
    private ZyUnit zyUnit;

    @TableField(exist = false)
    private String ownerRoomId;

    //uni app token
    @TableField(exist = false)
    private String token;
}